﻿using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using BIS.Utility.DAL.DataMapper;
using BIS.Utility.Converter;

namespace BIS.Portal.Modules.CMS.Entity
{
    public class AdminCmsCategoryNameEntity : IEntity
    {


        #region Private member

        private int _category_id;
        private string _category_name;
        private int _parent_category_id;

        #endregion

        #region Pulbic contructor

        public int Category_id
        {
            get { return _category_id; }
            set { _category_id = value; }
        }

        public int Parent_Category_id
        {
            get { return _parent_category_id; }
            set { _parent_category_id = value; }
        }
        

        public string Category_name
        {
            get { return _category_name; }
            set { _category_name = value; }
        }

    
        #endregion

        #region Pulbic properties

        public AdminCmsCategoryNameEntity()
        {
        }

        public AdminCmsCategoryNameEntity(int categoryId,string categoryName,int  parentCategoryId)
        {
            _category_id = categoryId;

            _category_name = categoryName;

            _parent_category_id = parentCategoryId;
        }

        #endregion

        #region Implement From IEntity Member
        public void Fill(System.Data.IDataReader reader)
        {
            Category_id = Functions.GetInt(reader["category_id"]);
            Category_name = Functions.GetString(reader["category_name"]);
            Parent_Category_id = Functions.GetInt(reader["parent_category_id"]);
        }
        #endregion

    }
}
